projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8082a5
)
Allow a function for the :secret in a plstore
author
Andrew G Cohen
<cohen@andy.bu.edu>
Thu, 27 Aug 2020 05:14:26 +0000
(13:14 +0800)
committer
Andrew G Cohen
<cohen@andy.bu.edu>
Thu, 27 Aug 2020 05:14:26 +0000
(13:14 +0800)
* lisp/auth-source.el (auth-source-plstore-search): If the :secret
value is a function, call it on plist to obtain the real password.
lisp/auth-source.el
patch
|
blob
|
history
diff --git
a/lisp/auth-source.el
b/lisp/auth-source.el
index 7a0e09b9e8eba474e837e60fc486aedc9ebc54fb..50795ce79463381934697256a7959a4aa8cc81bc 100644
(file)
--- a/
lisp/auth-source.el
+++ b/
lisp/auth-source.el
@@
-2073,7
+2073,9
@@
entries for git.gnus.org:
(setcar
(cdr secret)
(let ((v (car (cdr secret))))
- (lambda () v))))
+ (if (functionp v)
+ (lambda () (funcall v plist))
+ (lambda () v)))))
plist))
items))
;; ensure each item has each key in `returned-keys'